<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.util.*,java.awt.*"%>    
<%@ page import="java.sql.*,service.IUserService,service.UserService,model.User"%> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册界面</title>
</head>
<style type="text/css">    
 body{    
      background-image: url("1.jpg");      
 }    
 </style> 
<body>
<%//输出当前日期
Calendar cal = Calendar.getInstance();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); 
String regdatetime=formatter.format(cal.getTime()); 
%>
<center>
<form action = "RegisterServlet" method="POST"> 
<h1><span style="font-weight:bold;font-family:'楷体'">&nbsp;新用户注册&nbsp;</span></h1><hr>
&nbsp;用户名：&nbsp;<input type="text" name="username" value=""><br>
<br>
 性别：&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;<input type="radio" name="gender" value="男" checked>男&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;<input type="radio" name="gender" value="女">女&nbsp;&nbsp;&nbsp;<br>
<br>
&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;龄：&nbsp;&nbsp;<input type="text" name="age" value=""><br>
<br>
电子邮件：<input type="text" name="email" value=""><br>
<br>
输入密码：<input type="password" name="password" value=""><br>
<br>
注册时间：&nbsp;&nbsp;<%=regdatetime %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
<br>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置"><br>
<h3><span style="font-weight:bold;color:yellow;font-family:'楷体'">返回登陆界面，请按</span><a href="login.jsp">这里</a></h3></form>
</center>
</body>
</html>